getStmfType (get stream file type)

Syntax:

srcType = getStmfType( 'stmf' );

Description:

Returns the source type (file extension) of a given stream file.

Return value:

Type of the specified stream file, e.g. RPGLE, DSPF, CLLE, etc.

Example:

// Retrieves the member type of stream file '/home/dev/ASSERT.rpgle'.

srcType = getStmfType('/home/dev/ASSERT.rpgle');